﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Three.BookStore.Migrations
{
    /// <inheritdoc />
    public partial class InitDB002 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<int>(
                name: "FatherPermissionId",
                table: "PermissionModel",
                type: "integer",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "OrderId",
                table: "PermissionModel",
                type: "integer",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<string>(
                name: "PermissionImg",
                table: "PermissionModel",
                type: "text",
                nullable: false,
                defaultValue: "");

            migrationBuilder.AddColumn<string>(
                name: "PermissionPath",
                table: "PermissionModel",
                type: "text",
                nullable: false,
                defaultValue: "");

            migrationBuilder.AddColumn<bool>(
                name: "PermissionState",
                table: "PermissionModel",
                type: "boolean",
                nullable: false,
                defaultValue: false);
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "FatherPermissionId",
                table: "PermissionModel");

            migrationBuilder.DropColumn(
                name: "OrderId",
                table: "PermissionModel");

            migrationBuilder.DropColumn(
                name: "PermissionImg",
                table: "PermissionModel");

            migrationBuilder.DropColumn(
                name: "PermissionPath",
                table: "PermissionModel");

            migrationBuilder.DropColumn(
                name: "PermissionState",
                table: "PermissionModel");
        }
    }
}
